tg-me.com/PineCodersSquawkBox/198
Create:
Last Update:
Last Update:
🌲 #newfeature
You can now extract the exchange or symbol part from any string in the "exchange:symbol" format using syminfo.prefix(string)
and
syminfo.ticker(string):
//@version=5
indicator("")
symbolInput = input.symbol("FX:USDCAD")
exchangeName = syminfo.prefix(symbolInput)
symbolName = syminfo.ticker(symbolInput)
ticker = ticker.new(exchangeName, symbolName, session.extended)
symbolClose = request.security(ticker, "1D", close)
plot(symbolClose)
if barstate.islastconfirmedhistory
label.new(bar_index, symbolClose, exchangeName + ":" + symbolName)
BY PineCoders Squawk Box

Share with your friend now:
tg-me.com/PineCodersSquawkBox/198